package com.github.m6d21.sso.dao.permission.dao;

import com.github.m6d21.sso.model.permission.entity.Permission;
import com.github.m6d21.sso.model.permission.qo.PermissionQO;
import java.util.List;

/**
 *<p>
 *IPermissionDao
 *</p>
 *
 * @author liuyang
 * @date 2018-12-05 Wed 22:26:30
 * @since 1.0.0
 */
public interface IPermissionDao {

    Permission getById(Integer id);

    boolean insertPermission(Permission permission);

    boolean insertSelectivePermission(Permission permission);

    boolean updatePermissionById(Permission permission);

    boolean updateSelectivePermissionById(Permission permission);

    List<Permission> find(PermissionQO permissionQO);

    List<Permission> query(PermissionQO permissionQO);

    List<Permission> queryForAdmin(PermissionQO permissionQO);

    boolean deleteById(Integer id);

    boolean deleteByIds(List<Integer> ids);
}
